import request from '@/utils/request.js';

export function selectAwardsList(query){
    return request({
        url:'/awards/selectAwardsList',
        method:'get',
        params:query
    })
}
export function deleteAwards(awardsId){
    return request({
        url:'/awards/delete/'+awardsId,
        method:'delete'
    })
}
export function deleteTypes(data){
    return request({
        url: '/awards/delete',
        method: 'post',
        params: {
            ids: data
        }
    })
}
/**
 * 
 * 更新用户信息
 */
 export function updateAwards(data){
    return request({
        url:'/awards/updateAwards',
        method:'put',
        data:data
    })
}
export function addAwards(awards){
    return request({
        url:'/awards/addAwards',
        method:'post',
        data:awards,
    })
}